package top.tenebrous.yzl.im.factory.message;

import top.tenebrous.yzl.im.enums.MessageType;
import top.tenebrous.yzl.im.handler.MessageHandler;

/**
 * 消息工厂
 *
 * @author yazhang6
 */
public interface MessageFactory {

    void register(MessageType messageType, MessageHandler messageHandler);

    MessageHandler getInstance(MessageType messageType);

}
